<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AddMchIdPayOrderTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('pay_order', function (Blueprint $table) {
            $table->string('wx_mch_id', 12)->default('')->comment('商户号')->after('wx_prepay_id');
            // $table->index('wx_mch_id', 'wx_mch_id');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('pay_order', function (Blueprint $table) {
            //
        });
    }
}
